package org.itboys.trade.service;

import java.text.DecimalFormat;

import javax.annotation.Resource;

import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.itboys.trade.entity.TicketOrder;
import org.springframework.stereotype.Service;

/**
 * 订单
 * @author weisky
 *
 */
@Service
public class TicketOrderService extends BaseService<TicketOrder, Long>{

	private static final long serialVersionUID = 1L;
	
	@Resource(name = "orderDS")
	private MongoDataSource ds;
	public final static DecimalFormat df = new DecimalFormat("#.##");
	
	@Override
	protected MongoDataSource getMongoDataSource() {
		return ds;
	}

	@Override
	protected Class<TicketOrder> getEntityClass() {
		return TicketOrder.class;
	}
	
}
